package com.guigu.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;

@Data
@TableName("product_images")
public class ProductImage {
    @TableId(type = IdType.AUTO)
    private Integer imageId;
    private Integer productId;
    private String imageUrl;
    private Date createdAt;
    // 如果数据库字段是image_type，需要添加字段映射注解
    @TableField("image_type")
    private int imageType;
}